<?php echo $this->inlineScript()->setScript('
	$("document").ready(function(){
	
		$("#gallery a").lightBox({
			fixedNavigation: true,
			imageLoading: "' . $this->baseUrl() . '/public/images/lightbox-ico-loading.gif",
			imageBtnPrev: "' . $this->baseUrl() . '/public/images/sleft.gif",
			imageBtnNext: "' . $this->baseUrl() . '/public/images/sright.gif",
			imageBtnClose: "' . $this->baseUrl() . '/public/images/lightbox-btn-close.gif",
			imageBlank:	"' . $this->baseUrl() . '/public/images/lightbox-blank.gif"
		}).click(function(){
		
			$( "#lightbox-nav-btnPrev" ).css({
				position: "absolute",
				left: "-54px"
			});
		
			$( "#lightbox-nav-btnNext" ).css({
				position: "absolute",
				right: "-54px"
			});
		});
	
	});
'); ?>

<div class="jestesw"><?php echo $this->translate("produkt_ma");?> / <?php echo $this->cat['title']?> / <span><?php echo $this->game['title']?></span></div>
	<div id="gallery">
	<?php 
	$price = unserialize($this->game['price']);
	?>
		<a title="<?php echo $this->cat['title']?> - <?php echo $this->game['title']?>" href="<?php echo $this->File( $this->game['image'], 'big' ) ?>" class="imagebig" style="cursor: pointer;position:relative;background-image: url('<?php echo $this->File( $this->game['image'], 'big' ) ?>');"></a>
		<?php for($i=0;$i<20;$i++){
			if(!isSet($this->gal[$i])){
				break;
			}

			if( $i > 3 ) {?>
				<a title="<?php echo $this->cat['title']?> - <?php echo $this->game['title']?>" href="<?php echo $this->File( $this->gal[$i]['image'], 'big' ) ?>" class="imagemini" style="cursor: pointer;display:none;background-image: url('<?php echo $this->File( $this->gal[$i]['image'], 'list' ) ?>');"></a>
			<?php } else if ( $i == 3 ) { ?>
				<a title="<?php echo $this->cat['title']?> - <?php echo $this->game['title']?>" href="<?php echo $this->File( $this->gal[$i]['image'], 'big' ); ?>" class="imagemini" style="cursor: pointer;background-image: url(<?php echo $this->baseUrl() ?>/public/images/nexp.gif);"></a>
			<?php } else { ?>
				<a title="<?php echo $this->cat['title']?> - <?php echo $this->game['title']?>" href="<?php echo $this->File( $this->gal[$i]['image'], 'big' ) ?>" class="imagemini" style="cursor: pointer;background-image: url('<?php echo $this->File( $this->gal[$i]['image'], 'list' ) ?>');"></a>
			<?php } ?>
		<?php 
		}
		?>
    </div>
            <div class="hr2"></div>
            <div class="nazwaicena">
                <span class="nazwa"><?php echo $this->game['title']?></span>
                <span class="cena promo"><?php echo number_format($price[$this->game['currency']], 2, ',', ' ').$this->game['currency']?></span>
                <?php 
                if(isSet($price[$this->currency.'_strike']) && $price[$this->currency.'_strike']!=0){
					echo '<div class="promo">'.number_format($price[$this->currency.'_strike'], 2, ',', ' ').$this->currency.'</div>';
				}
                ?>
            </div>
            <div class="hr2"></div>
            <div class="opisproduktu">  
                <?php echo $this->game['description']?>
            </div>
            <div class="hr2"></div>
            <?php 
            echo $this->inlineScript()->setScript('
				function check_add()
				{
					if($("select[name=\'rozmiar\']").val()==0){
						alert("'.$this->translate("produkt_no_size").'");
						return 0;
					}
					$("#add").attr("action","'.$this->baseUrl().'/basket/add");
					$("#add").submit();	
				}
			');	?>
            <form action="javascript:;" method="post" onsubmit="check_add()" id="add">
            
	        <div class="dodajdokoszyka">
	        	<input type="hidden" name="prod_id" value="<?php echo $this->game['p_id']?>" />
	        	<table cellpadding="0" cellspacing="0" width="100%">
	        		<tr>
	        			<td width="64px;position:relative;">
				            <select class="stylish2" name="count">
				            	<option value="1">1</option>
				            	<option value="2">2</option>
				            	<option value="3">3</option>
				            	<option value="4">4</option>
				            	<option value="5">5</option>
				            </select>
						</td>
						<td width="124px" style="padding-left:5px;position:relative;">
				            <select class="stylish" name='rozmiar'>
				            <?php echo '<option value="0">'.$this->translate("index_showone_size").'</option>';?>
				            	<?php 
				            	if($this->game['size_s']>0){
				            		echo '<option value="s">S</option>';	
				            	}?>
				            	<?php 
				            	if($this->game['size_m']>0){
				            		echo '<option value="m">M</option>';	
				            	}?>
				            	<?php 
				            	if($this->game['size_l']>0){
				            		echo '<option value="l">L</option>';	
				            	}?>
				            	<?php 
				            	if($this->game['size_xl']>0){
				            		echo '<option value="xl">XL</option>';	
				            	}?>
				            	<?php 
				            	if($this->game['size_xxl']>0){
				            		echo '<option value="xxl">XXL</option>';	
				            	}?>
				            	<?php 
				            	if($this->game['size_xxxl']>0){
				            		echo '<option value="xxxl">XXXL</option>';	
				            	}?>
				            </select>
	            		</td>
	            		<td style="text-align:right;">
							<input type="submit" value="<?php echo $this->translate("produkt_add");?> <?php echo number_format($price[$this->game['currency']], 2, ',', ' ').$this->game['currency']?>"/>
	        			</td>
	        		</tr>
	        	</table>
	        </div>
            </form>
            <div class="hr2"></div><div class="end"></div>